<template>
    <div>
        <Button @click="goBack">后退一步</Button>
    </div>
</template>

<script>
    export default {
        name: "DemoGoBack",
        methods:{
            goBack(){
                // 后退一步记录，等同于 history.back()
                this.$router.go(-1)
            }
        }
    }
</script>

<style scoped>

</style>
